public class Card 
{
	private int number;
	private String color;
	
	public Card(int n, String c)
	{
		number = n;
		color = c;
	}
	
	@Override
	public String toString()
	{
		String result = Integer.toString(number) + "-" + color;
		
		return result;
	}
	
	public int getNumber()
	{
		return number;
	}
	
	public void setNumber(int value)
	{
		number = value;
	}
	
	public String getColor()
	{
		return color;
	}
	
	public int compareTo(Card test)
	{
		if(number < test.getNumber())
			return -1;
		else if(number > test.getNumber())
			return 1;
		else
			return 0;
	}
	
	public boolean equals(Card test)
	{
		if(number == test.getNumber())
			if(color == test.getColor())
				return true;
		return false;
	}
}

